let redis=require('../dao/redis');
let rankService = module.exports;

rankService.getRankData = async function(){
    let cdata = await redis.zrangeByScore("coin_rank_list", 10);
    let tdata = await redis.zrangeByScore("time_rank_list", 10);
    let ldata = await redis.zrangeByScore("lv_rank_list", 10);

    let res = {
        coinRank: cdata, timeRank: tdata, lvRank: ldata
    };

    return res;
};